import request from '@/utils/request'

export function getSysParking(data) {
  return request({
    url: 'parkingNode/page',
    method: 'post',
    data
  })
}

export function getSysParkingDetail(data) {
  return request({
    url: '/parkingNode/' + data,
    method: 'get'
  })
}

export function addSysParking(data) {
  return request({
    url: '/parkingNode/add',
    method: 'post',
    data
  })
}

export function editSysParking(data) {
  return request({
    url: '/parkingNode/update',
    method: 'post',
    data
  })
}

export function deleteSysParking(data) {
  return request({
    url: '/parkingNode/delete/' + data,
    method: 'post'
  })
}
